package com.xiaoyu.lingdian.vo;

import java.util.List;
import com.xiaoyu.lingdian.entity.CoreAttachment;
import com.xiaoyu.lingdian.entity.CorePointsOrder;
import com.xiaoyu.lingdian.vo.BaseVO;
import com.xiaoyu.lingdian.tool.DateUtil;

public class CorePointsOrderVO implements BaseVO {

	/**
	*标识UUID
	*/
	private String crporUuid;

	/**
	*下单用户UUID
	*/
	private String crporUser;
	
	/**
	*下单用户昵称
	*/
	private String crporUserName;
	
	/**
	*商品UUID
	*/
	private String crporGoodsUuid;

	/**
	*商品名称
	*/
	private String crporGoodsName;

	/**
	*创建日期
	*/
	private String crporCdate;

	/**
	*修改日期
	*/
	private String crporUdate;

	/**
	*处理状态:1支付中2支付成功3支付失败4已发货5交易成功
	*/
	private Integer crporStatus;

	/**
	*收货人姓名
	*/
	private String crporName;

	/**
	*手机号码
	*/
	private String crporTel;

	/**
	*邮政编码
	*/
	private String crporMail;

	/**
	*所在省市
	*/
	private String crporCity;

	/**
	*详细地址
	*/
	private String crporAddress;

	/**
	*数量
	*/
	private Integer crporNumber;

	/**
	*单价
	*/
	private String crporPrice;

	/**
	*总价
	*/
	private String crporTotal;

	/**
	*支付价格
	*/
	private String crporSjFee;

	/**
	*所用积分
	*/
	private String crporSyScore;

	/**
	*抵扣费用
	*/
	private String crporDkFee;

	/**
	*备注
	*/
	private String crporRemarks;

	/**
	*附件详情
	*/
	private List<CoreAttachment> list;
	
	public void setCrporUuid(String crporUuid) {
		this.crporUuid = crporUuid;
	}

	public String getCrporUuid( ) {
		return crporUuid;
	}

	public void setCrporUser(String crporUser) {
		this.crporUser = crporUser;
	}

	public String getCrporUser( ) {
		return crporUser;
	}

	public void setCrporGoodsUuid(String crporGoodsUuid) {
		this.crporGoodsUuid = crporGoodsUuid;
	}

	public String getCrporGoodsUuid( ) {
		return crporGoodsUuid;
	}

	public void setCrporGoodsName(String crporGoodsName) {
		this.crporGoodsName = crporGoodsName;
	}

	public String getCrporGoodsName( ) {
		return crporGoodsName;
	}

	public void setCrporCdate(String crporCdate) {
		this.crporCdate = crporCdate;
	}

	public String getCrporCdate( ) {
		return crporCdate;
	}

	public void setCrporUdate(String crporUdate) {
		this.crporUdate = crporUdate;
	}

	public String getCrporUdate( ) {
		return crporUdate;
	}

	public void setCrporStatus(Integer crporStatus) {
		this.crporStatus = crporStatus;
	}

	public Integer getCrporStatus( ) {
		return crporStatus;
	}

	public void setCrporName(String crporName) {
		this.crporName = crporName;
	}

	public String getCrporName( ) {
		return crporName;
	}

	public void setCrporTel(String crporTel) {
		this.crporTel = crporTel;
	}

	public String getCrporTel( ) {
		return crporTel;
	}

	public void setCrporMail(String crporMail) {
		this.crporMail = crporMail;
	}

	public String getCrporMail( ) {
		return crporMail;
	}

	public void setCrporAddress(String crporAddress) {
		this.crporAddress = crporAddress;
	}

	public String getCrporAddress( ) {
		return crporAddress;
	}

	public void setCrporNumber(Integer crporNumber) {
		this.crporNumber = crporNumber;
	}

	public Integer getCrporNumber( ) {
		return crporNumber;
	}

	public void setCrporPrice(String crporPrice) {
		this.crporPrice = crporPrice;
	}

	public String getCrporPrice( ) {
		return crporPrice;
	}

	public void setCrporTotal(String crporTotal) {
		this.crporTotal = crporTotal;
	}

	public String getCrporTotal( ) {
		return crporTotal;
	}

	public void setCrporRemarks(String crporRemarks) {
		this.crporRemarks = crporRemarks;
	}

	public String getCrporRemarks( ) {
		return crporRemarks;
	}

	public String getCrporUserName() {
		return crporUserName;
	}

	public void setCrporUserName(String crporUserName) {
		this.crporUserName = crporUserName;
	}

	public String getCrporCity() {
		return crporCity;
	}

	public void setCrporCity(String crporCity) {
		this.crporCity = crporCity;
	}

	public String getCrporSjFee() {
		return crporSjFee;
	}

	public void setCrporSjFee(String crporSjFee) {
		this.crporSjFee = crporSjFee;
	}

	public String getCrporSyScore() {
		return crporSyScore;
	}

	public void setCrporSyScore(String crporSyScore) {
		this.crporSyScore = crporSyScore;
	}

	public String getCrporDkFee() {
		return crporDkFee;
	}

	public void setCrporDkFee(String crporDkFee) {
		this.crporDkFee = crporDkFee;
	}

	public List<CoreAttachment> getList() {
		return list;
	}

	public void setList(List<CoreAttachment> list) {
		this.list = list;
	}

	public CorePointsOrderVO( ) { 
	}

	@Override
	public void convertPOToVO(Object poObj) {
		if (null == poObj) {
			return;
		}

		CorePointsOrder po = (CorePointsOrder) poObj;
		this.crporUuid = po.getCrporUuid();
		this.crporUser = po.getCrporUser();
		this.crporUserName = po.getCrporUserName();
		this.crporGoodsUuid = po.getCrporGoodsUuid();
		this.crporGoodsName = po.getCrporGoodsName();
		this.crporCdate = po.getCrporCdate()!=null?DateUtil.formatDefaultDate(po.getCrporCdate()):"";
		this.crporUdate = po.getCrporUdate()!=null?DateUtil.formatDefaultDate(po.getCrporUdate()):"";
		this.crporStatus = po.getCrporStatus();
		this.crporName = po.getCrporName();
		this.crporTel = po.getCrporTel();
		this.crporMail = po.getCrporMail();
		this.crporCity = po.getCrporCity();
		this.crporAddress = po.getCrporAddress();
		this.crporNumber = po.getCrporNumber();
		this.crporPrice = po.getCrporPrice();
		this.crporTotal = po.getCrporTotal();
		this.crporSjFee = po.getCrporSjFee();
		this.crporSyScore = po.getCrporSyScore();
		this.crporDkFee = po.getCrporDkFee();
		this.crporRemarks = po.getCrporRemarks();
	}

}